package lecture02.exa02;
/*
选择结构：单分支结构，双分支结构，多分支结构
 */


import java.util.Scanner;

public class IfElseInf {
    public static void main(String[] args) {
        System.out.println("请输入成绩，判断等级");
        Scanner sc = new Scanner(System.in);
        int grade = sc.nextInt();
//        int grade = 95;
//        if (grade >= 60) {
//            System.out.println("及格");
//        }else {
//            System.out.println("不及格");
//        }
        if (grade >= 90) {
            System.out.println("优");
        }else if (grade >= 80) {
            System.out.println("良");
        }else if (grade >= 70) {
            System.out.println("中");
        }else if (grade >= 60) {
            System.out.println("合格");
        }else{
            System.out.println("不合格");
        }
    }
}
